#
def check_age():
    age = input('input_age:')
    if not 18 <= int(age) <= 65:
        # raise ValueError('not age')
        raise Exception('not age Error')
    return age

def check_pwd():
    password = input('input_pwd:')
    if len(password) < 8:
        raise Exception('Error: password < 8')
    return password

if __name__ == '__main__':
    print(check_pwd())
